<div style="border: solid 1px black; width: 300px; height: 100px; font-size: 0">
    <span style="display: inline-block; width:50%; height: 100%; background-color: green"></span>aaa
    <span style="display: inline-block; width:50%; height: 100%; background-color: red"></span>
</div>